package jhlee42;

public class ch04Ex01Song_235 {
	public static void main(String [] args){
		Song LetItGo = new Song();
		LetItGo.title ="Let It Go";
		LetItGo.artist ="효린";
		LetItGo.album ="Frozen OST";
		LetItGo.composer[1] = "Various Artist";
		LetItGo.composer[2] = "Various Artist";
		LetItGo.year = "2013";
		LetItGo.track ="5";
		
		LetItGo.show(); // 곡 출력
	} // main
} // class

class Song {
	String title;
	String artist;
	String album;
	String composer[] = new String[3];
	String year;
	String track;
	
	public void show(){
		System.out.println(title);
		System.out.println(artist);
		System.out.println(album);
		if(composer!=null){
			for(int i=1; i < composer.length; ++i){
				System.out.println(composer[i]);
			}
		}
		System.out.println(year);
		System.out.println(track);		
	}//show	
}// song class









